<title>积分设置</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>问答管理</cite></a>
    <a><cite>基本设置</cite></a>
    <a><cite>积分设置</cite></a>
  </div>
</div>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">

  <!--选项卡-->
      <div class="layui-card-body">
          <div class="layui-tab layui-tab-brief" lay-filter="J_tabLi">
            <ul class="layui-tab-title">
              <li class="layui-this">积分策略</li>
              <li><a lay-href="wendasns/credit/log">积分日志</a></li>
            </ul>
          </div>
      </div>
      
          <div class="layui-card-body">
            <table id="J_table_list" class="layui-hide" lay-filter="J_table_list" url="{:url('wendansns/credit/edit')}"></table>
          </div>
          
        </div>
      </div>
    </div>
  </div>

<script>
;!function(){
  var table = layui.table;

  table.render({
    elem: '#J_table_list'
    ,url: '{:url('wendasns/credit/list')}'
    ,cols: [[
       {field:'name', title:'用户行为', minWidth:120}
      ,{field:'number', title:'每日奖惩上限次数', minWidth:120, edit: 'text'}
      ,{field:'credit', title:'积分奖励', minWidth:120, edit: 'text'}
    ]]
    ,height: 'auto' //设置高度
    ,text: {
      none: '暂无数据'
    }
  }); 



}();
</script>